home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2420 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  967 b 

  1. Path: gate.stateoftheart.com!usenet
  2. From: Michael@StateOfTheArt.com (Mike Johnson)
  3. Newsgroups: comp.lang.c
  4. Subject: WM_COMPAREITEM message
  5. Date: Thu, 18 Jan 1996 18:09:40 GMT
  6. Organization: State Of The Art, Inc.
  7. Message-ID: <4dm2f0$n56@gate.stateoftheart.com>
  8. NNTP-Posting-Host: g-205.stateoftheart.com
  9. X-Newsreader: Forte Free Agent 1.0.82
  10.  
  11. I have a bit of a problem.  I have an ower draw listbox which I need
  12. to sort the contents of.  I have attempted to use the LBS_HASSTRINGS
  13. and the LBS_SORT preferences in the listbox, however, it doesn't do
  14. anything.  So I dumped the LBS_HASSTRINGS preference and now I am
  15. trapping the WM_COMPAIREITEM message (I know that the message is being
  16. trapped correctly).  When I look in the COMPAREITEMSTRUCT structure
  17. the itemData1 and itemData2 variables are identitcal each and
  18. everytime I send a LB_ADDSTRING message to the listbox.  Because these
  19. values in these variables are identical, no sorting takes place.
  20.  
  21. Any thoughts?
  22.  
  23.